package com.carpark.ejb.DAO;

import com.carpark.ejb.Model.CarsModel;
import com.carpark.ejb.Model.ClientsModel;
import java.util.List;
import java.util.Vector;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.persistence.EntityManager;

/**
 *
 * @author Sawior
 */
@Local
interface CarDAO extends Finders {

    public CarsModel getCarById(Integer id);

    public EntityManager getEntityManager();

    public int getCarsSize();

    public CarsModel addCar(CarsModel cr);

    public void removeCar(Integer id);

    public void updateCar(CarsModel cr);

    public List<CarsModel> getAllCars();

    public List<CarsModel> getCarsByClientAndType(ClientsModel cl, String type);

    public List<CarsModel> getCarsByClient(ClientsModel cl);

    @Override
    public List<Vector<String>> findAll();

}
